gtk4.git
27 years agoRedo (and complete) movement of all pointer types into pointer_data in the GtkArg...
Elliot Lee [Sun, 14 Jun 1998 16:59:42 +0000 (16:59 +0000)]
Redo (and complete) movement of all pointer types into pointer_data in the GtkArg union

27 years agoReformat two function prototypes for cosmetics
Elliot Lee [Sun, 14 Jun 1998 16:50:48 +0000 (16:50 +0000)]
Reformat two function prototypes for cosmetics

27 years agoreverting changes that depend on other code which i'm going to
Tim Janik [Sun, 14 Jun 1998 15:02:05 +0000 (15:02 +0000)]
reverting changes that depend on other code which i'm going to
commit later this night (so gtk at least compiles for people).

27 years agoheal gtk. ;)
Tim Janik [Sun, 14 Jun 1998 14:37:39 +0000 (14:37 +0000)]
heal gtk. ;)

27 years agos/string_data/pointer_data/ as needed to match GtkArg
Elliot Lee [Sun, 14 Jun 1998 07:58:02 +0000 (07:58 +0000)]
s/string_data/pointer_data/ as needed to match GtkArg

s/string_data/pointer_data/ as needed to match GtkArg

27 years agoPatch from Tom Bech <tomb@ii.uib.no>, to handle color specs of the form c
Owen Taylor [Sat, 13 Jun 1998 15:51:34 +0000 (15:51 +0000)]
Patch from Tom Bech <tomb@ii.uib.no>, to handle color specs of the form c

Sat Jun 13 11:48:26 1998  Owen Taylor  <otaylor@gtk.org>

* gdk/gdkpixmap.c (gdk_pixmap_extract_color):
Patch from Tom Bech <tomb@ii.uib.no>, to handle color
specs of the form c #abcdef [ more keys ] properly.

27 years ago*** empty log message ***
Stefan Jeske [Sat, 13 Jun 1998 09:02:05 +0000 (09:02 +0000)]
*** empty log message ***

27 years agoNew API to set the shadow type of the arrow panel.
Stefan Jeske [Sat, 13 Jun 1998 08:56:27 +0000 (08:56 +0000)]
New API to set the shadow type of the arrow panel.

27 years agoRemoved code for drawing the child in two places at once. Unfortunately,
Owen Taylor [Sat, 13 Jun 1998 01:36:28 +0000 (01:36 +0000)]
Removed code for drawing the child in two places at once. Unfortunately,

Fri Jun 12 21:20:42 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/gtkoptionmenu.c (gtk_option_menu_expose): Removed
code for drawing the child in two places at once. Unfortunately,
not only does it not work anymore (because reparenting has
been fixed), but it also triggers reparent/expose loops
in some cases.

* gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Removed
an unecessary unrealize.

27 years agorenamed enum GtkAnchor and GtkSide to GtkAnchorType and GtkSideType, to be
Tim Janik [Fri, 12 Jun 1998 08:10:29 +0000 (08:10 +0000)]
renamed enum GtkAnchor and GtkSide to GtkAnchorType and GtkSideType, to be

Fri Jun 12 09:24:47 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkpacker.h:
        * gtk/gtkpacker.c: renamed enum GtkAnchor and GtkSide to GtkAnchorType
        and GtkSideType, to be consistent with the rest of Gtk's enum
        definitions. wrapped the enum definitions with the G_ eunm wrappers.
        spelled out the GTK_ANCHOR_* enum values, since single letters don't
        work out corectly as nick-names (left the old values as aliases).
        some signdness corrections (border-width, spacing), could stand more.

27 years agoAdded gtkpacker
CDT 1998 Shawn T. Amundson [Fri, 12 Jun 1998 00:49:11 +0000 (00:49 +0000)]
Added gtkpacker

Thu Jun 11 14:38:33 CDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * gtk/gtkpacker.c, gtk/gtkpacker.h, gtk/gtk.h, gtk/Makefile.am:
          Added gtkpacker

        * examples/packer/pack.c, examples/packer/Makefile: Added
          gtkpacker example

27 years agoRemoved glib, since it's in its own module now.
Dick Porter [Thu, 11 Jun 1998 20:00:42 +0000 (20:00 +0000)]
Removed glib, since it's in its own module now.

27 years agoFixed broken list-removal code.
Owen Taylor [Thu, 11 Jun 1998 17:52:12 +0000 (17:52 +0000)]
Fixed broken list-removal code.

Thu Jun 11 13:09:00 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/gtktext.c (remove_cache_line): Fixed broken
list-removal code.

* gtk/gtktext.c: (gtk_text_delete_(forward/backward)_cahr)
Check bounds before deleting.

27 years agoSupport ACLOCAL_FLAGS
Owen Taylor [Thu, 11 Jun 1998 03:19:39 +0000 (03:19 +0000)]
Support ACLOCAL_FLAGS

Wed Jun 10 23:21:33 1998  Owen Taylor  <otaylor@gtk.org>

* autogen.sh: Support ACLOCAL_FLAGS

27 years ago#define GTK_HAVE_ACCEL_GROUP
Manish Singh [Thu, 11 Jun 1998 01:45:22 +0000 (01:45 +0000)]
#define GTK_HAVE_ACCEL_GROUP

-Yosh

27 years agoAdded missing quotes.
Owen Taylor [Thu, 11 Jun 1998 00:52:24 +0000 (00:52 +0000)]
Added missing quotes.

Wed Jun 10 20:54:37 1998  Owen Taylor  <otaylor@gtk.org>

* gtk-config.in: Added missing quotes.

27 years agoRenamed from G_COMPILED_WITH_DEBUGGING.
Raja R Harinath [Thu, 11 Jun 1998 00:27:08 +0000 (00:27 +0000)]
Renamed from G_COMPILED_WITH_DEBUGGING.

* acconfig.h (GTK_COMPILED_WITH_DEBUGGING): Renamed from
G_COMPILED_WITH_DEBUGGING.

27 years agoExplain check better.
Raja R Harinath [Thu, 11 Jun 1998 00:12:59 +0000 (00:12 +0000)]
Explain check better.

* configure.in (fd_set): Explain check better.

* acinclude.m4: New file.  Contains `libtool.m4' from libtool-1.2,
the version from which gtk+'s libtool forked.  Needed for people
who use post-1.2 alphas of libtool.

27 years agoRemove last remaining file
Raja R Harinath [Wed, 10 Jun 1998 23:52:31 +0000 (23:52 +0000)]
Remove last remaining file

27 years agoglib/* Moved to glib module
Owen Taylor [Wed, 10 Jun 1998 23:44:55 +0000 (23:44 +0000)]
glib/* Moved to glib module

Wed Jun 10 19:36:35 1998  Owen Taylor  <otaylor@gtk.org>

* glib/* Moved to glib module

* INSTALL Makefile.am acconfig.h autogen.sh configure.in
  gtk-config.in gtk.m4 gdk/Makefile.am gtk/Makefile.am

  configuration changes for the above:

  - Use AM_PATH_GLIB by default to find glib; also accept
    a --with-glib option for using an uninstalled glib.

  - Put --enable-debug information into config.h so
    that we rebuild when it changes. (was in glibconfig.h)

27 years agoadapted clist pixmap clipping
Lars Hamann [Wed, 10 Jun 1998 21:48:21 +0000 (21:48 +0000)]
adapted clist pixmap clipping

        * gtk/gtkctree.c (draw_row): adapted clist pixmap clipping

        * gtk/gtknotebook.h (struct _GtkNotebookClass):
        * gtk/gtknotebook.c (gtk_real_notebook_switch_page):
        added missing argument (according to Joseph Coleman's bug report)

        * gtk/gtknotebook.c (gtk_notebook_set_focus_child): new class
        function to fix notebook focus handling

27 years agoRenamed g_const_pointer => gconstpointer.
Owen Taylor [Wed, 10 Jun 1998 16:59:28 +0000 (16:59 +0000)]
Renamed g_const_pointer => gconstpointer.

27 years agoprevent gdk_init() from segfaulting when invoked with (NULL, NULL); (this
Tim Janik [Wed, 10 Jun 1998 07:32:52 +0000 (07:32 +0000)]
prevent gdk_init() from segfaulting when invoked with (NULL, NULL); (this

Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>

        * gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
        invoked with (NULL, NULL); (this worked sometime ago).

        * gtk/gtktypeutils.h:
        * gtk/gtktypeutils.c: enum and flags type creation can now be done
        through gtk_type_register_enum() and gtk_type_register_flags(),
        which allow to specify the enum value arrays directly.
        the NULL terminated value arrays can be retrived through
        gtk_type_enum_get_values() and gtk_type_flags_get_values();
        (gtk_type_children_types): new function to query derived types.

27 years agoenum and flags type creation can now be done through
Tim Janik [Wed, 10 Jun 1998 04:55:22 +0000 (04:55 +0000)]
enum and flags type creation can now be done through

Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtktypeutils.h:
        * gtk/gtktypeutils.c: enum and flags type creation can now be done
        through gtk_type_register_enum() and gtk_type_register_flags(),
        which allow to specify the enum value arrays directly.
        the NULL terminated value arrays can be retrived through
        gtk_type_enum_get_values() and gtk_type_flags_get_values();

27 years agoThinko... The ChangeLog entry still stands.
Raja R Harinath [Wed, 10 Jun 1998 02:15:50 +0000 (02:15 +0000)]
Thinko...  The ChangeLog entry still stands.

27 years agoAdd $(srcdir) where needed (in the rule), and removed it where not needed
Raja R Harinath [Wed, 10 Jun 1998 02:10:23 +0000 (02:10 +0000)]
Add $(srcdir) where needed (in the rule), and removed it where not needed

1998-06-09  Raja R Harinath  <harinath@cs.umn.edu>

* gtk/Makefile.am (gtk.defs,gtktypebuiltins*): Add $(srcdir)
where needed (in the rule), and removed it where not needed
(in the dependencies).

27 years agoPass $srcdir in environment to genmarshal.pl. Look for `gtkmarshal.list'
Raja R Harinath [Wed, 10 Jun 1998 01:04:46 +0000 (01:04 +0000)]
Pass $srcdir in environment to genmarshal.pl. Look for `gtkmarshal.list'

1998-06-09  Raja R Harinath  <harinath@cs.umn.edu>

* gtk/Makefile.am (gtkmarshal.c gtkmarshal.h): Pass $srcdir in
environment to genmarshal.pl.
* gtk/genmarshal.pl: Look for `gtkmarshal.list' in $srcdir.

27 years agomore const pointer corrections.
Tim Janik [Wed, 10 Jun 1998 00:54:54 +0000 (00:54 +0000)]
more const pointer corrections.

27 years agoRemoved g_object_pointer_hash, which was just g_direct_hash.
Owen Taylor [Tue, 9 Jun 1998 23:18:11 +0000 (23:18 +0000)]
Removed g_object_pointer_hash, which was just g_direct_hash.

Tue Jun  9 18:44:57 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/gtkobject.c: Removed g_object_pointer_hash, which
was just g_direct_hash.

Mon May 25 19:54:20 1998  Owen Taylor  <otaylor@gtk.org>

* configure.in: x_libs=, not $x_libs=. Enough said.
          (Case only hit for --disable-xshm)

Mon May 25 12:08:14 1998  Owen Taylor  <otaylor@gtk.org>

* configure.in (LDFLAGS): Add to $CFLAGS and $LDFLAGS
  when testing for X libraries, don't replace them. Because
  the user might have specified the path to the X libraries
  themself before running configure.

* examples/**.c: Changed all gpointer * to gpointer

Sat May 23 21:54:05 1998  Owen Taylor  <otaylor@gtk.org>

* configure.in (LDFLAGS): Bomb out with a moderately
  helpful message if detection of X libraries fails.

Sat May 23 18:57:06 1998  Owen Taylor  <otaylor@gtk.org>

  [ Combination of:
     gtk-rrh-980412-0.patch (Raja R Harinath <harinath@cs.umn.edu>)
     gtk-jbuhler-980516-0 (Jeremy Buhler <jbuhler@cs.washington.edu>) ]

* gdk/gdk.h gdk/gdkcc.c gdk/gdkfont.c gtk/gtkmain.c
  gtk/gtksignal.c gtk/gtktext.c:

  Fixups for warnings from adding const to type of GHashFunc,
  GCompareFunc

* gtk/gtkcombo.c (gtk_combo_entry_key_press): Minor style/
  ansi-warnings fixups.

Tue Jun  9 17:47:33 1998  Owen Taylor  <otaylor@gtk.org>

* glib.h: Remove #error - HP/UX.

Sat May 23 19:00:01 1998  Owen Taylor  <otaylor@gtk.org>
  [ Combination of:
     gtk-rrh-980412-0.patch (Raja R Harinath <harinath@cs.umn.edu>)
     gtk-jbuhler-980516-0 (Jeremy Buhler <jbuhler@cs.washington.edu>) ]

* glib.h ghash.c gstring.c gdataset.c gutils.c:
- Added new typedef g_const_pointer; expunged all incorrect
  uses of 'const gpointer'.
- Fixed up warnings that that created,
- Changed GHashFunc and GCompareFunc to take g_const_pointer
  arguments. (Necessary, but will cause warnings in existing
  code until fixed)
- Added other new const in harmless positions.

27 years agoRemoved the fleur_cursor field. Now the cursor is created/destroyed on
Federico Mena Quintero [Tue, 9 Jun 1998 21:01:45 +0000 (21:01 +0000)]
Removed the fleur_cursor field. Now the cursor is created/destroyed on

1998-06-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gtk/gtkhandlebox.h (struct _GtkHandleBox): Removed the
fleur_cursor field.  Now the cursor is created/destroyed on demand
by the routines that need it.

* gtk/gtkhandlebox.c (gtk_handle_box_button_changed):
(gtk_handle_box_motion): The fleur cursor is created and destroyed
only when needed.

27 years agoFix for people using name mangling
Elliot Lee [Tue, 9 Jun 1998 20:16:12 +0000 (20:16 +0000)]
Fix for people using name mangling

27 years agoJust a convenience to parallel gtk-config
Elliot Lee [Tue, 9 Jun 1998 20:10:48 +0000 (20:10 +0000)]
Just a convenience to parallel gtk-config

Just a convenience to parallel gtk-config

27 years agoWarning cleanups.. cvsignore stuff
Manish Singh [Tue, 9 Jun 1998 10:33:56 +0000 (10:33 +0000)]
Warning cleanups.. cvsignore stuff

-Yosh

27 years agorenamed the newly created gtk_enum_get_values and gtk_enum_set_values to
Tim Janik [Tue, 9 Jun 1998 08:21:20 +0000 (08:21 +0000)]
renamed the newly created gtk_enum_get_values and gtk_enum_set_values to

Tue Jun  9 09:57:09 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtktypeutils.h:
        * gtk/gtktypeutils.c: renamed the newly created gtk_enum_get_values and
        gtk_enum_set_values to gtk_type_enum_get_values and
        gtk_type_enum_set_values respectively, since they are actually type
        system features.

        * gtk/gtktypebuiltins_evals.c: oops, screwed the NULL termination with
        my last commit. ;)

27 years agoremoved some bogus commas.
Tim Janik [Tue, 9 Jun 1998 07:14:34 +0000 (07:14 +0000)]
removed some bogus commas.

27 years agonew functions gtk_selection_data_copy and gtk_selection_data_free.
Tim Janik [Tue, 9 Jun 1998 07:11:55 +0000 (07:11 +0000)]
new functions gtk_selection_data_copy and gtk_selection_data_free.

Tue Jun  9 01:57:23 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkselection.h:
        * gtk/gtkselection.c: new functions gtk_selection_data_copy and
        gtk_selection_data_free.

        * gtk/gtkwidget.c (gtk_widget_class_init): fixed gtk_signal_new() call
        for "selection_received", which was completely bogus.
        * other fixups to gtk_signal_new() calls all over the place.

        * gtk/gtktypebuiltins.h: types as variables (formerly macros).
        * gtk/gtktypebuiltins_vars.c: type variable implementations.
        * gtk/gtktypebuiltins_ids.c: array entries for builtin type
        declarations.
        * gtk/gtktypebuiltins_evals.c: enum value arrays.
        * gtk/gtk-boxed.defs: gtk and gdk structure definitions, used to build
        gtk.defs.
        * gtk/gtk.defs: generated file with scheme syntax for type definitions
        of gtk and gdk structures and enums.
        * gtk/gtktypeutils.h:
        * gtk/gtktypeutils.c: reworked type ids, so they are variables not
        macros anymore (this fixes binary incompatibility with new enum
        definitions).

        * gtk/gtkwidget.c (gtk_widget_real_key_press_event): proccess possible
        key bindings for this widget.
        * gtk/gtkwindow.c (gtk_window_key_press_event): chain parent class'
        handler.

        * gtk/gtkobject.h:
        * gtk/gtkobject.c: removed gtk_object_class_new_user_signal_no_recurse()
        again. new functions gtk_object_class_user_signal_new () and
        gtk_object_class_user_signal_newv (), to feature the GtkSignalRunType
        flag on the signal creation.
Mon Jun  8 20:52:21 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkcontainer.h: new signal GtkContainer::set_focus_child.

27 years agocheck for func in g_[s]list_insert_sorted and g_[s]list_find_custom
Tim Janik [Mon, 8 Jun 1998 04:09:21 +0000 (04:09 +0000)]
check for func in g_[s]list_insert_sorted and g_[s]list_find_custom

27 years agowrapped enum definitions with glib macros.
Tim Janik [Mon, 8 Jun 1998 03:38:24 +0000 (03:38 +0000)]
wrapped enum definitions with glib macros.

Mon Jun  8 02:52:37 1998  Tim Janik  <timj@gtk.org>

        * gdk/gdkprivate.h:
        * gdk/gdktypes.h:
        * gtk/gtkprivate.h:
        * gtk/gtkwidget.h:
        * gtk/gtkobject.h: wrapped enum definitions with glib macros.

        * reworked enum value array generation code. gtk.defs is a generated
        file now.

27 years agoStart of marshalling centralization.
Elliot Lee [Mon, 8 Jun 1998 01:37:27 +0000 (01:37 +0000)]
Start of marshalling centralization.

Start of marshalling centralization.

Please check this over for sanity. I think the perl script and Makefile might
need fixing up to allow builddir != srcdir

I will start converting all the widgets to use this scheme if no problems
arise.

27 years agohrm.. extra #pragma..
Manish Singh [Sun, 7 Jun 1998 23:43:00 +0000 (23:43 +0000)]
hrm.. extra #pragma..

-Yosh

27 years agosilly typo
Manish Singh [Sun, 7 Jun 1998 23:22:42 +0000 (23:22 +0000)]
silly typo

-Yosh

27 years agoAdded g_s?list_find_custom functions to allow user to specify a
Elliot Lee [Sun, 7 Jun 1998 20:18:21 +0000 (20:18 +0000)]
Added g_s?list_find_custom functions to allow user to specify a

Added g_s?list_find_custom functions to allow user to specify a
GCompareFunc to determine whether a node matches or not.

If you have a better idea for naming the functions, please, make it so! :)

27 years agoAllow the user to pass --enable-mem-check and --enable-mem-profile at
Elliot Lee [Sun, 7 Jun 1998 17:37:15 +0000 (17:37 +0000)]
Allow the user to pass --enable-mem-check and --enable-mem-profile at

Allow the user to pass --enable-mem-check and --enable-mem-profile at
compile time.

27 years agofeature check menu items in the compatibility code (this required me to
Tim Janik [Sun, 7 Jun 1998 13:44:34 +0000 (13:44 +0000)]
feature check menu items in the compatibility code (this required me to

Sun Jun  7 14:34:31 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
        check menu items in the compatibility code (this required me to remove
        the "<check>" part from the menu item name, grrr).

27 years agofurther additions to fit the gimp's code. additions to the dumping code to
Tim Janik [Sun, 7 Jun 1998 12:22:45 +0000 (12:22 +0000)]
further additions to fit the gimp's code. additions to the dumping code to

Sun Jun  7 10:53:02 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkitemfactory.h:
        * gtk/gtkitemfactory.c: further additions to fit the gimp's code.
        additions to the dumping code to feature GtkPatternSpec.
        even found a bug to fix in the original code ;)

27 years agoNew prototypes. New functions.
Marius Vollmer [Sun, 7 Jun 1998 12:00:55 +0000 (12:00 +0000)]
New prototypes. New functions.

* gdk/gdk.h (gdk_color_copy, gdk_color_free): New prototypes.
* gdk/gdk.c (gdk_color_copy, gdk_color_free): New functions.

27 years ago*** empty log message ***
Marius Vollmer [Sun, 7 Jun 1998 12:00:26 +0000 (12:00 +0000)]
*** empty log message ***

27 years agosupport different types of callbacks, to maintain existing code.
Tim Janik [Sun, 7 Jun 1998 07:52:26 +0000 (07:52 +0000)]
support different types of callbacks, to maintain existing code.

Sun Jun  7 09:36:04 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkitemfactory.h:
        * gtk/gtkitemfactory.c: support different types of callbacks, to
        maintain existing code.

... changes to the item factory to ease support of the gimp's code...

27 years agoremove these files, we got gtkaccelgroup.[ch] now.
Tim Janik [Sun, 7 Jun 1998 07:05:12 +0000 (07:05 +0000)]
remove these files, we got gtkaccelgroup.[ch] now.

27 years agofixed an assertment.
Tim Janik [Sun, 7 Jun 1998 06:48:56 +0000 (06:48 +0000)]
fixed an assertment.

Sat Jun  6 06:01:24 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.

        * gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
        this should eventually be done by gentypeinfo.el somewhen.
        * gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.

        * gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
        enum values of an enum type.

        * gtk/gtk.defs:
        * gtk/gtkcurve.h:
        * gtk/gtkobject.h:
        * gtk/gtkprivate.h:
        * gtk/gtkwidget.h:
        * gtk/gtkenums.h:
        brought enum/flags definitions in sync, added a few more enum
        definitions for bindings and pattern matching.

        * some more macro and GtkType fixups in various places.

        * gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
        as a key-release modifier for the binding system.

Fri Jun  5 06:06:06 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
        was a stale list pointer that is already present in GtkMenuShell.

        * gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
        GtkMenuShell::selection_done which is emitted after the menu shell
        poped down again and all possible menu items have been activated.

Thu Jun  4 02:20:42 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
        before activation of the menuitem, so the menu is actually taken off the
        screen prior to any menu item activation.

        * gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
        for NULL nodes.

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
        the emission of the "add-accelerator" signal on a widget. this is
        usefull to prevent accelerator installation on certain widgets.

        * gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
        labels left justified, by setting their alignment. stop accelerator
        installation for the menu items, since we use dynamic menus.

Wed Jun  3 06:41:22 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
        should *really* use GtkItemFactory. this is only for preserving source
        compatibility where possible, use of GtkMenuFactory is deprecated as of
        now.

        * gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
        to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
        missed this possibility when i added gtk_object_class_add_user_signal
        in late january.

        * gtk/gtkmain.c (gtk_init): ignore subsequent function calls.

Sun May 31 07:31:09 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkaccelgroup.h:
        * gtk/gtkaccelgroup.c: new implementation of the accelerator concept.

        * gtk/gtkaccellabel.h:
        * gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
        display of the accelerators associated with a certain widget.

        * gtk/gtkitemfactory.h:
        * gtk/gtkitemfactory.c: new widget, item factory with automatic rc
        parsing and accelerator handling.

        * gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
        positioning a menu.
        (gtk_menu_map): removed the allocation code.
        (gtk_menu_size_allocate): care for redrawing of children and resize
        our widget->window correctly.
        (gtk_menu_key_press): feature the new accelerator groups.

        * gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
        submenu if neccessary.

        * gtk/gtkmenuitem.c:
        * gtk/gtkcheckmenuitem.c:
        * gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
        function variants.

        * gdk/gdk.c:
        (gdk_keyval_from_name):
        (gdk_keyval_name): new functions for keyval<->key-name associations.
        (gdk_keyval_to_upper):
        (gdk_keyval_to_lower):
        (gdk_keyval_is_upper):
        (gdk_keyval_is_lower): new functions to check/translate keyvalues with
        regards to their cases.

Wed May 27 00:48:10 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
        widget's class path.
        (gtk_widget_path): new function to calculate a widget's name path.

        * gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
        pattern matching, features reversed pattern matches.

27 years agoCommented out the MEM_PROFILE and MEM_CHECK from gmem.c, causing problems
Manish Singh [Sat, 6 Jun 1998 21:16:57 +0000 (21:16 +0000)]
Commented out the MEM_PROFILE and MEM_CHECK from gmem.c, causing problems
with GdkImages.

Updates some .cvsignores

-Yosh

27 years agoAdd \n's on the end of g_prints in the mem profiling code.
Elliot Lee [Fri, 5 Jun 1998 21:00:15 +0000 (21:00 +0000)]
Add \n's on the end of g_prints in the mem profiling code.

Add \n's on the end of g_prints in the mem profiling code.

27 years agoSet package version to 1.0.4 in anticipation of upcoming release.
rhlabs [Thu, 4 Jun 1998 16:04:09 +0000 (16:04 +0000)]
Set package version to 1.0.4 in anticipation of upcoming release.

Dr Mike

27 years agoNew files to automagically extract code examples from the tutorial.
BST 1998 Tony Gale [Thu, 4 Jun 1998 11:15:55 +0000 (11:15 +0000)]
New files to automagically extract code examples from the tutorial.

Thu Jun  4 12:12:11 BST 1998  Tony Gale  <gale@gtk.org>

        * examples/extract.sh, examples/extract.awk:
          New files to automagically extract code examples from the
          tutorial.

27 years agoreversed test sequence for GTK_WIDGET_CAN_FOCUS and GTK_IS_CONTAINER
Lars Hamann [Tue, 2 Jun 1998 19:32:33 +0000 (19:32 +0000)]
reversed test sequence for GTK_WIDGET_CAN_FOCUS and GTK_IS_CONTAINER

27 years agominor changes to support auto extraction of example code
BST 1998 Tony Gale [Tue, 2 Jun 1998 12:08:14 +0000 (12:08 +0000)]
minor changes to support auto extraction of example code

Tue Jun  2 13:04:06 BST 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml: minor changes to support auto
          extraction of example code

27 years agoAdded function gtk_clist_swap to swap two rows in a clist; I also have
Jay Painter [Tue, 2 Jun 1998 02:51:46 +0000 (02:51 +0000)]
Added function gtk_clist_swap to swap two rows in a clist; I also have
finally fixed pixmap clipping so pixmaps are always cliped to the row.

27 years agowrote a comment describing why a hash node's key should not also get
Tim Janik [Tue, 2 Jun 1998 01:11:17 +0000 (01:11 +0000)]
wrote a comment describing why a hash node's key should not also get

Mon Jun  1 04:43:27 1998  Tim Janik  <timj@gtk.org>

        * ghash.c (g_hash_table_insert): wrote a comment describing why
        a hash node's key should not also get replaced when overriding
        previous entries.

Tue May 26 18:30:06 1998  Tim Janik  <timj@gtk.org>

        * glib.h (g_string_sized_new): new function to controll the preallocated
        size of a GString.

        * glib.h (g_strreversed): new function to reverse a string.

27 years agoUpdate of Italian Tutorial to Tutorial of 24th May, from Daniele Canazza
BST 1998 Tony Gale [Mon, 1 Jun 1998 11:53:08 +0000 (11:53 +0000)]
Update of Italian Tutorial to Tutorial of 24th May, from Daniele Canazza

Mon Jun  1 12:47:56 BST 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut_it.sgml: Update of Italian Tutorial
          to Tutorial of 24th May, from Daniele Canazza <dcanazz@tin.it>

27 years ago- new section on Events - change all delete_event callbacks to include a
BST 1998 Tony Gale [Fri, 29 May 1998 12:43:18 +0000 (12:43 +0000)]
- new section on Events - change all delete_event callbacks to include a

Fri May 29 13:53:57 BST 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml:
          - new section on Events
          - change all delete_event callbacks to include
            a GdkEvent parameter
          - clean up the formatting

        * examples - helloworld.c, helloworld2.c, notebook.c,
          packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
          rulers.c, table.c, wheelbarrow.c: change all delete_event
           callbacks to include a GdkEvent parameter.

27 years agoNew enumeration for the "mode" field of crossing events. (struct
Federico Mena Quintero [Wed, 27 May 1998 02:01:40 +0000 (02:01 +0000)]
New enumeration for the "mode" field of crossing events. (struct

1998-05-26  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode"
field of crossing events.
(struct _GdkEventCrossing): Added the following fields: time, x,
y, x_root, y_root, mode, focus, state.

* gdk/gdk.c (gdk_event_translate): Fill in the new fields of the
crossing event structure.

* gtk/gtkfeatures.h (GDK_HAVE_FULL_CROSSING_EVENT): Annotate
changes to the crossing event structure.

27 years agoinclude gdkx.h always (for GDK_ROOT_WINDOW)
Radek Doulik [Tue, 26 May 1998 13:54:38 +0000 (13:54 +0000)]
include gdkx.h always (for GDK_ROOT_WINDOW)

Tue May 26 15:51:28 1998  Radek Doulik  <gis@academy.cas.cz>

* gdk/gdk.c: include gdkx.h always (for GDK_ROOT_WINDOW)

27 years agoRevert, as per Owen's request
Elliot Lee [Mon, 25 May 1998 02:41:36 +0000 (02:41 +0000)]
Revert, as per Owen's request

27 years agoMake GtkEditable use signals instead of calling klass->... for stuff. Could someone...
Elliot Lee [Sun, 24 May 1998 20:56:35 +0000 (20:56 +0000)]
Make GtkEditable use signals instead of calling klass->... for stuff. Could someone look at the get_chars routine to see how to return the value properly?

27 years ago- GtkTooltips, update to current API - change all 'gpointer *data' to
BST 1998 Tony Gale [Sun, 24 May 1998 11:23:04 +0000 (11:23 +0000)]
- GtkTooltips, update to current API - change all 'gpointer *data' to

Sun May 24 12:11:38 BST 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml:
           - GtkTooltips, update to current API
           - change all 'gpointer *data' to 'gpointer data'
           - other minor changes

27 years agoBombo out with a moderately helpful message if detection of X libraries
Owen Taylor [Sun, 24 May 1998 02:48:09 +0000 (02:48 +0000)]
Bombo out with a moderately helpful message if detection of X libraries

Sat May 23 21:54:05 1998  Owen Taylor  <otaylor@gtk.org>

* configure.in (LDFLAGS): Bombo out with a moderately
  helpful message if detection of X libraries fails.

27 years agoLocate child at (border_width,border_width), not
Owen Taylor [Sat, 23 May 1998 21:55:40 +0000 (21:55 +0000)]
Locate child at (border_width,border_width), not

Sat May 23 17:48:58 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/gtkeventbox.c (gtk_event_box_size_allocate):
        Locate child at (border_width,border_width), not
(2*border_width,2*border_width). [ The border is _outside_
widget->window ]

* gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
  functions. [From: Alexander Larsson <alla@lysator.liu.se> ]

27 years agoOops. Commited a file I should not have. Revert change
Arturo Espinosa [Fri, 22 May 1998 23:48:02 +0000 (23:48 +0000)]
Oops.  Commited a file I should not have.  Revert change

27 years agoDefine GTK_HAVE_RC_SET_IMAGE_LOADER, to be used in gnome-libs
Miguel de Icaza [Fri, 22 May 1998 23:43:03 +0000 (23:43 +0000)]
Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be used in gnome-libs

1998-05-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

* gtk/gtkfeatures.h.in: Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be
used in gnome-libs

27 years agoFix size_allocate to pass on to the child even if child isn't visible.
Elliot Lee [Fri, 22 May 1998 21:33:44 +0000 (21:33 +0000)]
Fix size_allocate to pass on to the child even if child isn't visible.

Fix size_allocate to pass on to the child even if child isn't visible.
Also locate child at (border_width, border_width) not (0,0)

27 years agoChanged log
Owen Taylor [Fri, 22 May 1998 07:09:15 +0000 (07:09 +0000)]
Changed log

27 years agoAdded style_set handler.
Owen Taylor [Fri, 22 May 1998 07:07:11 +0000 (07:07 +0000)]
Added style_set handler.

Fri May 22 03:02:40 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/gtkhandlebox.c: Added style_set handler.

Fri May 22 02:55:57 1998  Owen Taylor  <otaylor@gtk.org>
 [ From: Chris Lahey  <clahey@umich.edu> ]

* gtk/gtkeditable.c, gtk/gtkeditable.h,
  gtk/gtktext.c, gtk/gtkentry.c: Added get_position,
  and set_position functions to get and set the cursor position.

        * gtk/gtkeditable.c: Restored "insert_text" and "delete_text" to
  signal status. Make GtkText do user-controlled insertion
  and deletion through the Editable widget so that these
  signals are properly emitted.

* gtk/gtkentry.c: Changed gtk_entry_set_visibility to
  display asterisks instead of empty space when visible = FALSE)

27 years agouse GTK_TYPE_GDK_EVENT in (un)?select_row signal.
CEST 1998 Paolo Molaro [Fri, 22 May 1998 06:55:20 +0000 (06:55 +0000)]
use GTK_TYPE_GDK_EVENT in (un)?select_row signal.

Fri May 22 08:51:10 CEST 1998  Paolo Molaro <lupus@debian.org>

* gtk/gtkclist.c: use GTK_TYPE_GDK_EVENT in (un)?select_row
signal.

27 years agoclog ent for changes
Elliot Lee [Thu, 21 May 1998 21:09:19 +0000 (21:09 +0000)]
clog ent for changes

27 years agoI should have named it gtk_rc_set_image_loader() initially - fixed
Elliot Lee [Thu, 21 May 1998 19:26:19 +0000 (19:26 +0000)]
I should have named it gtk_rc_set_image_loader() initially - fixed

27 years agoAllow user to set a custom image loading routine for loading bg_pixmap's
Elliot Lee [Thu, 21 May 1998 19:24:01 +0000 (19:24 +0000)]
Allow user to set a custom image loading routine for loading bg_pixmap's

Allow user to set a custom image loading routine for loading bg_pixmap's specified in the
gtkrc's.

27 years agoUse pthread_attr_init() as a test function, since most of the rest of
Owen Taylor [Wed, 20 May 1998 03:41:28 +0000 (03:41 +0000)]
Use pthread_attr_init() as a test function, since most of the rest of

Tue May 19 23:41:04 1998  Owen Taylor  <otaylor@gtk.org>

* configure.in: Use pthread_attr_init() as a test function,
since most of the rest of -lpthread is macros on DU4.

Mon May 18 22:14:39 1998  Owen Taylor  <otaylor@gtk.org>
(Yasuhiro SHIRASAKI <joke@awa.tohoku.ac.jp> : gtk-joke-980517-0.patch)

* gutils.c: Restored a missing prototype for g_vsprintf.

27 years agoconditionally define NULL, FALSE and TRUE. (g_mem_chunk_create): new
Tim Janik [Wed, 20 May 1998 03:31:30 +0000 (03:31 +0000)]
conditionally define NULL, FALSE and TRUE. (g_mem_chunk_create): new

Wed May 20 05:02:26 1998  Tim Janik  <timj@gtk.org>

        * glib.h: conditionally define NULL, FALSE and TRUE.
        (g_mem_chunk_create): new convenience macro as a short hand for
        g_mem_chunk_new().
        (g_chunk_free): new convenience macro to be consistent with g_chunk_new.

27 years agoAdd GDK_SUBSTRUCTURE_NOTIFY_MASK
Elliot Lee [Tue, 19 May 1998 22:33:24 +0000 (22:33 +0000)]
Add GDK_SUBSTRUCTURE_NOTIFY_MASK

Add GDK_SUBSTRUCTURE_NOTIFY_MASK

Fixed GDK_DESTROY handling WRT GnomeRootwin widget.

27 years agogdk_region_get_clipbox() lets you get a rectangle around the region.
Elliot Lee [Tue, 19 May 1998 16:17:00 +0000 (16:17 +0000)]
gdk_region_get_clipbox() lets you get a rectangle around the region.

gdk_region_get_clipbox() lets you get a rectangle around the region.

27 years agoTue, 19 May 1998 11:51:02 +0200 Paolo Molaro <lupus@debian.org>
Paolo Molaro [Tue, 19 May 1998 10:17:31 +0000 (10:17 +0000)]
Tue, 19 May 1998 11:51:02 +0200 Paolo Molaro <lupus@debian.org>

* added generic functions for completion in glib.
* used the above functions in the gtkcombo widget.

27 years agoentry for previous change
Elliot Lee [Mon, 18 May 1998 22:36:05 +0000 (22:36 +0000)]
entry for previous change

27 years agoAllow GTK_DEBUG=signals - VERY useful ;-)
Elliot Lee [Mon, 18 May 1998 22:34:43 +0000 (22:34 +0000)]
Allow GTK_DEBUG=signals - VERY useful ;-)

Allow GTK_DEBUG=signals - VERY useful ;-)

27 years agoForgotten entry for visibility_notify_event
Elliot Lee [Mon, 18 May 1998 16:23:29 +0000 (16:23 +0000)]
Forgotten entry for visibility_notify_event

Forgotten entry for visibility_notify_event

27 years agochanged "proximity-in-event", "drop-data-available-event",
Tim Janik [Mon, 18 May 1998 04:31:03 +0000 (04:31 +0000)]
changed "proximity-in-event", "drop-data-available-event",

Mon May 18 04:01:41 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
        "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
        to be of runtype GTK_RUN_LAST.

        * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
        "need-resize".

        * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
        "widget-selected".

27 years agoprovide usefull default specifications for identifier_spec and
Tim Janik [Sun, 17 May 1998 11:35:55 +0000 (11:35 +0000)]
provide usefull default specifications for identifier_spec and

Sun May 17 10:48:27 1998  Tim Janik  <timj@gtk.org>

        * gscanner.c (g_scanner_unexp_token): provide usefull default
        specifications for identifier_spec and symbol_spec.

        * glib.h: new functions g_slist_nth_data and g_list_nth_data to return
        the data of the nth element in the list.

27 years agoquiet the compiler about uninitialized gc.
Tim Janik [Sat, 16 May 1998 07:31:06 +0000 (07:31 +0000)]
quiet the compiler about uninitialized gc.

27 years agog_strdup() the text retrived from GtkEntry. only intercept the Tab key if
Tim Janik [Sat, 16 May 1998 07:22:00 +0000 (07:22 +0000)]
g_strdup() the text retrived from GtkEntry. only intercept the Tab key if

Sat May 16 09:04:32 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
        text retrived from GtkEntry. only intercept the Tab key if there
        was some text to complete.

27 years agoBasic thread-awareness:
Owen Taylor [Sat, 16 May 1998 02:14:09 +0000 (02:14 +0000)]
Basic thread-awareness:

Fri May 15 21:16:54 1998  Owen Taylor  <otaylor@gtk.org>

Basic thread-awareness:

* acconfig.h configure.in: New option --with-threads=[yes/posix/no]

* gdk/Makefile.am gdk/gdkthreads.c: Added new functions
gdk_threads_[init/enter/leave] for applications, plus
gdk_threads_wake to wake the mainloop thread out of
the select().

* gtk/Makefile.am: gtk/testthreads.c: Test program for threads

27 years agoBasic thread-awareness:
Owen Taylor [Sat, 16 May 1998 02:13:12 +0000 (02:13 +0000)]
Basic thread-awareness:

Fri May 15 21:16:54 1998  Owen Taylor  <otaylor@gtk.org>

Basic thread-awareness:

* acconfig.h configure.in: New option --with-threads=[yes/posix/no]

* gdk/Makefile.am gdk/gdkthreads.c: Added new functions
gdk_threads_[init/enter/leave] for applications, plus
gdk_threads_wake to wake the mainloop thread out of
the select().

* gtk/Makefile.am: gtk/testthreads.c: Test program for threads

Fri May 15 12:08:48 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/testgtk.c (list_clear): Account for the fact
that gtk_list_clear_items is not inclusive. (Clears
[start, end))

27 years agoignore furry autogened files
Manish Singh [Sat, 16 May 1998 01:56:43 +0000 (01:56 +0000)]
ignore furry autogened files

-Yosh

27 years agobye bye autogenerated file
Manish Singh [Fri, 15 May 1998 23:07:59 +0000 (23:07 +0000)]
bye bye autogenerated file

-Yosh

27 years agoremoved sputious va_end(args) that for some reason didn't produce a
Tim Janik [Fri, 15 May 1998 22:25:38 +0000 (22:25 +0000)]
removed sputious va_end(args) that for some reason didn't produce a

Fri May 15 22:31:49 1998  Tim Janik  <timj@gtk.org>

        * gscanner.c (g_scanner_unexp_token): removed sputious va_end(args) that
        for some reason didn't produce a compiler wrning on my machine (is
        va_end undefined for i386?).

27 years agoMove to v1.1
rhlabs [Fri, 15 May 1998 20:08:30 +0000 (20:08 +0000)]
Move to v1.1

27 years agoinclude gdkkeysyms.h always
rodo [Fri, 15 May 1998 10:57:59 +0000 (10:57 +0000)]
include gdkkeysyms.h always

Fri May 15 12:31:27 1998  rodo  <doulik@karlin.mff.cuni.cz>

* gdk/gdk.c: include gdkkeysyms.h always

27 years agoreplaced some snprintf with g_snprintf
rodo [Fri, 15 May 1998 10:34:58 +0000 (10:34 +0000)]
replaced some snprintf with g_snprintf

Fri May 15 12:32:08 1998  rodo  <doulik@karlin.mff.cuni.cz>

* gscanner.c: replaced some snprintf with g_snprintf

27 years ago[binray incompatibility]
Tim Janik [Fri, 15 May 1998 08:09:18 +0000 (08:09 +0000)]
[binray incompatibility]

[binray incompatibility]

Fri May 15 00:56:59 1998  Tim Janik  <timj@gtk.org>

        * glib.h: further support for gcc function attributes: G_GNUC_FORMAT,
        G_GNUC_NORETURN and G_GNUC_CONST.

        * gscanner.c (g_scanner_stat_mode): changed stat() to lstat().
        (g_scanner_msg_handler): "\n" at end of line!
        (g_scanner_foreach_symbol): new function to iterate over the symbol
        table (GScanner does value-wrapping).

Fri May 15 09:44:10 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.h (struct _GtkWidgetClass): corrected returntype of
        the visibility_notify_event method and changed method order.

27 years agochagelog fixups (yea there are even bugs in the changelog entries, fear!)
Tim Janik [Thu, 14 May 1998 21:16:43 +0000 (21:16 +0000)]
chagelog fixups (yea there are even bugs in the changelog entries, fear!)

27 years agotypedef gint gboolean; this is needed to provide portability with
Tim Janik [Thu, 14 May 1998 21:13:18 +0000 (21:13 +0000)]
typedef gint gboolean; this is needed to provide portability with

Thu May 14 04:14:12 1998  Tim Janik  <timj@gtk.org>

        * glib.h: typedef gint gboolean;
        this is needed to provide portability with big-endian platforms (e.g.
        try sizeof(bool) for c++ on big-endians - it's 4).
        this is also needed to maintain some_union.d_gint==some_union.d_gboolean.
        plus, gint to gboolean casts and vice versa need to be possible without
        loss.

Thu May 14 03:04:43 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtktypeutils.c (gtk_type_free): new function to take care about
        freeing types.
        (gtk_type_set_chunk_alloc): new function to allow allocation of new
        types from a mem_chunk of certain size (n_chunks==0 indicates allocation
        thorugh g_malloc).

        * gtk/gtkobject.c (gtk_object_finalize): free an object through
        gtk_type_free().

        * gtk/gtkbutton.c (gtk_button_get_type): set chunk preallocation for
        GtkButtons to 16.
        * gtk/gtkmenuitem.c (gtk_menu_item_get_type): likewise (16).
        * gtk/gtklabel.c (gtk_label_get_type): likewise (32).

27 years agogtk/gtkwidget.[ch] Added visibility_notify_event to GtkWidget
4 [Thu, 14 May 1998 18:01:35 +0000 (18:01 +0000)]
gtk/gtkwidget.[ch] Added visibility_notify_event to GtkWidget

1998-05-14    <sopwith@moebuis.labs.redhat.com>

        * gtk/gtkwidget.[ch] Added visibility_notify_event to GtkWidget

Can you say "binary incompatible"? :-)